<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org"
      layout:decorate="~{admin/layout}">
<body>
<div  class="content-wrap" layout:fragment="content">
    <main id="content" class="content" role="main">
        <ol class="breadcrumb">
            <li>地块增减</li>
            <li class="active">地块新建</li>
        </ol>
        <div class="row">
            <div class="col-lg-8 col-lg-offset-1">
                <section class="widget">
                    <header>
                        <h5>
                            <span th:text="${areaLocation.serialNumber}"></span>
                        </h5>
                        <div class="widget-controls">
                            <a data-widgster="expand" title="Expand" href="#"><i class="glyphicon glyphicon-chevron-up"></i></a>
                            <a data-widgster="collapse" title="Collapse" href="#"><i class="glyphicon glyphicon-chevron-down"></i></a>
                            <a data-widgster="close" title="Close" href="#"><i class="glyphicon glyphicon-remove"></i></a>
                        </div>
                    </header>
                    <div class="widget-body">
                        <form th:action="@{/admin/landMass/create}" id="validation-form" class="form-horizontal form-label-left" method="post" >
                            <fieldset>
                                <input type="hidden"  name="areaLocation_id" th:value="${areaLocation.areaLocation_id}" >
                                <legend>
                                    <span class="label label-warning  text-gray-dark mr-xs">
                                    地块
                                    </span>
                                    信息
                                </legend>
                                <div class="form-group row">
                                    <label class="control-label col-sm-3" >
                                        地块长度
                                    </label>
                                    <div class="col-sm-9">
                                        <input type="text"  name="length" class="form-control" required="required" onkeyup="value=value.replace(/[^\d.]/g,'')">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label class="control-label col-sm-3" >
                                        地块宽度
                                    </label>
                                    <div class="col-sm-9">
                                        <input type="text"  name="breadth" class="form-control" required="required" onkeyup="value=value.replace(/[^\d.]/g,'')">
                                    </div>
                                </div>

                            </fieldset>
                            <div class="form-actions">
                                <button type="submit" class="btn btn-danger btn-rounded pull-xs-right">提交</button>
                                <button type="button" class="btn btn-secondary btn-rounded">取消</button>
                            </div>
                        </form>
                    </div>
                </section>
            </div>
        </div>
    </main>
</div>
</body>
</html>